package com.wangcp.utils;

import java.util.List;

/**
* 集合工具类
* @author wangcp
* @date 2021/12/29 10:05
**/
public class CollectionTools {
    //获取最后一行
    public static final <S> S last(List<S> list) {
        int size = list.size();
        if (size != 0) {
            return list.get(size - 1);
        }
        return null;
    }
}
